package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
@Getter@Setter
public class News extends BaseDomain {
    public static final int STATE_COMMON = 0;  //普通状态(草稿)
    public static final int STATE_WAIT = 1;  //待发布状态
    public static final int STATE_RELEASE = 2;  //已发布状态
    public static final int STATE_REJEST = -1;  //审核不通过状态
    //背景
    private String coverUrl;
    //标题
    private String title;
    //创建时间
    private Date createTime;
    //发布时间
    @JsonFormat(pattern = "yyyy-MM-dd ",timezone = "GMT+8")
    private Date releaseTime;
    //是否发布
    private Boolean isRelease;
    //作者
    private User author;
    //文章类型
    private NewsType type;
    //状态
    private Integer state;
    //描述
    private String abstracts;
    //日报内容
    private NewsContent content;

}